package com.smartcampusbackend.service.impl;

import com.smartcampusbackend.mapper.OperationLogMapper;
import com.smartcampusbackend.model.OperationLog;
import com.smartcampusbackend.service.OperationLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class OperationLogServiceImpl implements OperationLogService {
    @Autowired
    private OperationLogMapper operationLogMapper;

    @Override
    public void addLog(OperationLog log) {
        operationLogMapper.insert(log);
    }

    @Override
    public List<OperationLog> queryLogs(String businessType, String operatorRole, String operationType, String businessId, String status, String startTime, String endTime) {
        return operationLogMapper.queryLogs(businessType, operatorRole, operationType, businessId, status, startTime, endTime);
    }
} 